package xiaoyang.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import xiaoyang.dao.AppCategoryMapper;
import xiaoyang.pojo.AppCategory;
import xiaoyang.service.AppCategoryService;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional
public class AppCategoryServiceImpl implements AppCategoryService {
@Resource
private AppCategoryMapper appCategoryMapper;
    @Override
    public List<AppCategory> getCategoryLevel1() {
        return appCategoryMapper.getCategoryLevel1();
    }

    @Override
    public List<AppCategory> getCategoryLevel2() {
        return appCategoryMapper.getCategoryLevel2();
    }

    @Override
    public List<AppCategory> getCategoryLevel3(Integer parentId) {
        return appCategoryMapper.getCategoryLevel3(parentId);
    }

    @Override
    public AppCategory findid(String id) {
        return appCategoryMapper.findid(id);
    }
}
